/**
 * 财政审核
 */
import Layout from '@/layout'
import AppMain from '@/layout/components/AppMain'

const financialAudit = {
  path: '/financialAudit',
  component: Layout,
  redirect: '/financialAudit/financialAudit',
  name: 'financialAudit',
  meta: {
    title: '财政审核',
    icon: 'el-icon-s-flag',
    roles: ['admin', 'editor'] // you can set roles in root nav
  },
  children: [
    {
      path: 'financialAudit',
      component: AppMain,
      name: 'financialAudit',
      meta: {
        title: '财政审核',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor'] // or you can only set roles in sub nav
      },
      children: [
        {
          path: 'financialAudit3',
          component: () => import('@/views/financialAudit/financialAudit'),
          name: 'financialAudit3',
          meta: {
            title: '财政审核-初审',
            icon: 'el-icon-s-flag',
            roles: ['admin', 'editor'],
            menuid: '3',
            menuname: '初审'
          }
        },
        {
          path: 'financialAudit4',
          component: () => import('@/views/financialAudit/financialAudit'),
          name: 'financialAudit4',
          meta: {
            title: '财政审核-复审',
            icon: 'el-icon-s-flag',
            roles: ['admin', 'editor'],
            menuid: '4',
            menuname: '复审'
          }
        },
        {
          path: 'financialAuditEnd',
          component: () => import('@/views/financialAudit/financialAuditEnd'),
          name: 'financialAuditEnd',
          meta: {
            title: '财政审核-终审',
            icon: 'el-icon-s-flag',
            roles: ['admin', 'editor'],
            menuid: '5',
            menuname: '终审'
          }
        },
        {
          path: 'financialAuditEndChangchun',
          component: () => import('@/views/financialAudit/financialAuditEndChangchun'),
          name: 'financialAuditEndChangchun',
          meta: {
            title: '工资拨付确认',
            icon: 'el-icon-s-flag',
            roles: ['admin', 'editor'],
            menuid: '5',
            menuname: '工资拨付确认'
          }
        }
      ]
    },
    {
      path: 'salaryMonthEnd',
      component: () => import('@/views/financialAudit/salaryMonthEnd'),
      name: 'salaryMonthEnd',
      meta: {
        title: '工资月结',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor'] // or you can only set roles in sub nav
      }
    }
  ]
}

export default financialAudit
